package com.vshop.service.impl;

import com.vshop.entity.comentity.UserPackageStatusTime;
import com.vshop.mapper.UserPackageStatusTimeMapper;
import com.vshop.service.UserPackageStatusTimeService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional(rollbackFor = Exception.class)
public class UserPackageStatusTimeServiceImpl implements UserPackageStatusTimeService {
    @Resource
    UserPackageStatusTimeMapper userPackageStatusTimeMapper;

    @Override
    public void insertPackageStatusTime(UserPackageStatusTime statusTime) {
        userPackageStatusTimeMapper.insertPackageStatusTime(statusTime);
    }

    @Override
    public List<UserPackageStatusTime> getStatusTimeOrderList() {
        return userPackageStatusTimeMapper.getStatusTimeOrderList();
    }

    @Override
    public void updateTimeByPcakageStatus(UserPackageStatusTime time) {
        userPackageStatusTimeMapper.updateTimeByPcakageStatus(time);
    }
}
